import Layout from "@/layout"; //导入layout这个页面
// 审批模块路由规则
export default {
  path: "/employees",
  component: Layout,
  children: [
    {
      // path为空字符串表示默认路由
      path: "",
      name: "employees", // 路由的名称
      // name作为后续动态路由表筛选的条件
      component: () => import("@/views/employees/index"),
      meta: { title: "员工", icon: "people" }, //这是控制左侧的图标和名字
    },
    {
      //跳转到上传excel的路由
      path: "upload-excel",
      component: () => import("@/views/excel"),
      hidden: true,
    },
    {
      //跳转到员工操作的查看的路由
      path: ":id", // 动态路由参数
      component: () => import("@/views/employees/detail.vue"),
      hidden: true,
    },
    {
      //跳转到打印的页面
      path: "print/:id",
      component: () => import("@/views/employees/print.vue"),
      hidden: true,
    },
  ],
};
